# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   File Name：     day155_pyqt5_qPixmap
   Description :
   Author :       fuml
   date：          2019/9/22
-------------------------------------------------
   Change Activity:
                   2019/9/22:In this example, we dispay an image
on the window.
-------------------------------------------------
"""
import  sys
from PyQt5.QtWidgets import QWidget,QHBoxLayout,QLabel,QApplication
from PyQt5.QtGui import QPixmap

class Example(QWidget):
    def __init__(self):
        super().__init__()
        self.initUI()

    def initUI(self):
        hbox = QHBoxLayout(self)
        pixmap =QPixmap(r'Toolbar_png/Save.png')

        lbl =QLabel(self)
        lbl.setPixmap(pixmap)

        hbox.addWidget(lbl)
        self.setLayout(hbox)


        self.move(300,200)
        self.setWindowTitle('Red Rock')
        self.show()

if __name__ == '__main__':
    app =QApplication(sys.argv)
    ex =Example()
    sys.exit(app.exec_())